//
//  YJAutomaticViewPager.h
//  CToolBox
//
//  Created by crj on 2016/11/28.
//  Copyright © 2016年 SC. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface YJAutomaticViewPager : UIView
{
    
    NSArray *_titleArray;/**< 菜单标题 */
    NSArray *_views;      /**< 视图  */
}

@property (nonatomic, strong) UIScrollView *scrollView;
@property (nonatomic, strong) UIScrollView *menuScrollView;

//菜单高度
@property (nonatomic, assign) CGFloat menuHeight;
//选中颜色
@property (nonatomic, strong) UIColor *selectedColor;
//未选中颜色
@property (nonatomic, strong) UIColor *noSelectedColor;
//菜单字体大小
@property (nonatomic, assign) CGFloat menuFont;

/**
 *  初始化 CSViewPager的方法
 *
 *  @param frame   frame
 *  @param titles  标题数组
 *  @param views   视图数组 和标题数组一一对应
 *
 *  @return CSViewPager
 */
- (id)initWithFrame:(CGRect)frame
             titles:(NSArray<NSString *> *)titles
              views:(NSArray<__kindof UIView *> *)views;


@end
